package cn.jltx.javajni;

/**
 * @author jltxseo
 *         Created by junlintianxia on 2016/04/08.
 */

public class IHelloJni {
    /* this is used to load the 'hello-jni' library on application
 * startup. The library has already been unpacked into
 * /data/data/com.example.hellojni/lib/libhello-jni.so at
 * installation time by the package manager.
 */
    static {
        System.loadLibrary("hello-jni");
    }
    /* A native method that is implemented by the
 * 'hello-jni' native library, which is packaged
 * with this application.
 */
    public static native String  stringFromJNI();

    /* This is another native method declaration that is *not*
     * implemented by 'hello-jni'. This is simply to show that
     * you can declare as many native methods in your Java code
     * as you want, their implementation is searched in the
     * currently loaded native libraries only the first time
     * you call them.
     *
     * Trying to call this function will result in a
     * java.lang.UnsatisfiedLinkError exception !
     */
    public static native String  unimplementedStringFromJNI();

}
